#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
3、列表[1,2,3,4,3,4,2,5,5,8,9,7],将此列表去重，得到一个唯一元素的列表  #不允许用强制类型转
'''

class Quchong(object):
    def __init__(self, num_list):
        self.num_list = num_list

    def list_1(self):
        a = []
        for i in self.num_list:
            if i not in a:
                a.append(i)
        print(a)

if __name__ == '__main__':
    b = [1,2,3,4,3,4,2,5,5,8,9,7]
    result = Quchong(b)
    result.list_1()